﻿using System;

namespace ProjectDailyReport
{
    internal sealed class ProjectProgress
    {
        [PropertyComment("姓名")]
        public string Name { get; set; }

        [PropertyComment("處理專案")]
        public string Project { get; set; }

        [PropertyComment("執行內容")]
        public string ResponsibleFor { get; set; }

        [PropertyComment("進度(%)")]
        public int reachedRate { get; set; }

        [PropertyComment("備註")]
        public string Comment { get; set; }

        public static ProjectProgress GetInstance()
        {
            return new ProjectProgress
            {
                Name = "蘇國棟",
                Project = "北警",
                ResponsibleFor = "法令諮詢互動網",
                reachedRate = 5,
                Comment = ""
            };
        }
    }

    internal sealed class PropertyCommentAttribute : Attribute
    {
        #region Fields

        private string fComment;

        #endregion

        #region Methods

        public PropertyCommentAttribute(string comment)
        {
            Comment = comment;
        }

        #endregion

        #region Properties

        public string Comment
        {
            get
            {
                return fComment;
            }
            private set
            {
                fComment = value;
            }
        }

        #endregion
    }

    
}
